<?php

namespace fanletter\manager;

/**
 * 
 * manages the content-elements
 * @author Evan
 *
 */
class ElementManager
{
	private static $instance;
	private $elements;
	
	private function __construct()
	{
		
	}
	
	/**
	 * 
	 * @return ElementManager
	 */
	public static function getInstance()
	{
		if (self::instance === NULL)
		{
			self::$instance = new self();
		}
		return self::$instance;
	}
	
	public function getElementById($id)
	{
		if (is_array($this->elements))
		{
			//DO SOMETHING
		}
		else
		{
			//DO SOMETHING ELSE
		}
	}	
	
	public function getElementsForContentId($contentId)
	{
		if (is_array($this->elements))
		{
			//DO SOMETHING
		}
		else
		{
			//DO SOMETHING ELSE
		}
	}
	
	public function saveElement(Element $element)
	{
		//DO SOMETHING
	}
	
}
